package com.zxj.transfer.orm.service;

import com.zxj.transfer.orm.dao.TCancelLogMapper;
import com.zxj.transfer.orm.po.TCancelLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TCancelLogService {

    @Resource
    private TCancelLogMapper cancelLogMapper;

    public boolean isExist(String tid) {
        TCancelLog log = cancelLogMapper.selectByTid(tid);
        return log != null;
    }

    public int insert(String tid) {
        return cancelLogMapper.insert(tid);
    }
}
